package com.zuxia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zuxia.entity.Group;
import com.zuxia.entity.PageDto;
import com.zuxia.param.GroupParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author laoli
 * @since 2024-11-15
 */
public interface GroupService extends IService<Group> {
    //添加拼团
    boolean addGroup(Group group) throws Exception;
    //修改拼团状态（审核）
    boolean upGroupStatus(String id,Integer status);
    //拼团成功-修改次数
    boolean upGroupSuccessNum(String id,Integer status) throws Exception;
    //根据id查询拼团信息
    Group getGroupById(String id) throws Exception;
    //发布拼团
    boolean releaseGroup(String id,Integer status) throws Exception;
    //拼团分页查询
    PageDto<Group> getGroupByPage(GroupParam groupParam) throws Exception;
    //根据拼团编号发货
    boolean sendShop(String id);
}
